package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Employee;
import cn.wolfcode.crm.query.EmployeeQueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IEmployeeService {

    public PageInfo<Employee> selectByQo(EmployeeQueryObject qo);

    Employee selectByEmpId(Long id);

    void saveOrUpdate(Employee employee, Long[] ids);

    void deleteById(Long EmpId);

    Employee login(String username, String password);

    void logout();

    void deleteByIds(Long[] ids);

    Employee selectByName(Object username);

    List<Employee> selectEmpByRoleSns(String... rolesns);

    List<Employee> selectAll();

    void insertEmps(List<Employee> list);
}
